package com.kvest.maputils;

/**
 * Created with IntelliJ IDEA.
 * User: Kvest
 * Date: 17.04.13
 * Time: 22:38
 * To change this template use File | Settings | File Templates.
 */
public class Coordinate {
    private double longitude;
    private double latitude;

    public Coordinate() {
        longitude = 0;
        latitude = 0;
    }

    public Coordinate(double latitude, double longitude) {
        this.latitude = latitude;
        this.longitude = longitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    @Override
    public String toString() {
        return String.format("%.12f", latitude).replace(",", ".") + "," + String.format("%.12f", longitude).replace(",", ".");
    }
}
